#pragma once
#include "stdafx.h"

class CKeyBoard
{
protected:
	LPDIRECTINPUT m_Input;
	LPDIRECTINPUTDEVICE m_Keyboard;
	
	int KeyCode;

	BYTE m_Keys[256];
	DIDEVICEOBJECTDATA m_KeyEvents[KEYBOARD_BUFFER_SIZE];
public:
	CKeyBoard();
	void InitInput();
	void InitKeyBoard(HWND);
	void GetState();
	bool IsKeyDown(int);
	int GetKeyCode();
	void ClearKeyCode();
	bool IsPressed(int);

	~CKeyBoard();
};

